import { View, Text, Image } from '@tarojs/components'
import Taro from '@tarojs/taro'
import book from '../../assets/imgs/book.png'
import './TimeReview.scss'

const TimeReview = () => {
  const goBack = () => {
    Taro.navigateBack()
  }

  return (
    <View className='timeReview'>
      <View className='pageTitle'>
        <Text onClick={goBack} className='goBack'>
          {'<'}
        </Text>
        时光机
      </View>

      <View className='historyTimeList'>
        <View className='history-item'>
          <Image src={book} className='bg-img' />
          <View className='content'>
            <Text className='time'>2024年</Text>
            <Text>时光机</Text>
          </View>
        </View>
        <View className='history-item'>
          <Image src={book} className='bg-img' />
          <View className='content'>
            <Text className='time'>2025年</Text>
            <Text>时光机</Text>
          </View>
        </View>
      </View>
    </View>
  )
}

export default TimeReview